package kr.co.boogui.dao;

import java.util.List;

import kr.co.boogui.model.ZipcodeVO;
import mybatis3.helper.MVCSqlSessionFactory;

import org.apache.ibatis.session.SqlSession;

public class ZipcodeDAO {

	public static List<ZipcodeVO> readZipcode(String dong) {
		List<ZipcodeVO> result = null;
		SqlSession sess = null;		
		try {
			sess = MVCSqlSessionFactory.openSession();
			result = sess.selectList("ZipcodeMapper.zipcodeSQL", dong);			
		} finally {
			sess.close();
		}
		return result;
	}
}
